package com.wumart.scaffold.web.common.exception;


import com.wumart.scaffold.web.common.enums.CodeMsg;

/**
 * @author ruhaibo
 * @creat 2017-08-16 9:59.
 */
public class BusinessExecException extends BaseRuntimeException {

    // 默认异常返回码
    private static CodeMsg defaultCodeMsg = CodeMsg.ERR_BUSSINESS_EXEC;

    public BusinessExecException() {
        super(defaultCodeMsg);
    }

    public BusinessExecException(String message) {
        super(defaultCodeMsg, message);
    }

    public BusinessExecException(String message, Throwable cause) {
        super(defaultCodeMsg, message, cause);
    }

    public BusinessExecException(Throwable cause) {
        super(defaultCodeMsg, cause);
    }


    public BusinessExecException(CodeMsg rspCodeMsg) {
        super(rspCodeMsg);
    }

    public BusinessExecException(CodeMsg rspCodeMsg, String message) {
        super(rspCodeMsg, message);
    }

    public BusinessExecException(CodeMsg rspCodeMsg, String message, Throwable cause) {
        super(rspCodeMsg, message, cause);
    }

    public BusinessExecException(CodeMsg rspCodeMsg, Throwable cause) {
        super(rspCodeMsg, cause);
    }

}
